#pragma once
#include <string>
#include <memory>
#include <vector>
#include "NetProtocol.h"

class CDownload
{
public:
    bool Down(const std::string& url, int thNum);
private:
    void MergerData(const std::string &fileName, std::vector<std::shared_ptr<INetProtocol>>& vecDownload);
    bool CheckFile(const std::string &url, const std::string &strLocalFile);
    std::shared_ptr<INetProtocol> GetClient();
    std::string GetContentMd5(const std::string &fileName);
};